﻿using Baula.TextGen.Framework.Tools;

namespace Baula.TextGen.ComAndVbeIntegration
{
    public class FactoryForCom : IFactory
    {
        public Framework.PartTemplate CreatePartTemplate(string headingLine)
        {
            return new PartTemplate(headingLine);
        }

        public Framework.PartTemplate CreatePartTemplate()
        {
            return new PartTemplate();
        }

        public Framework.Document CreateDocument(Framework.DocumentTemplate documentTemplate)
        {
            return new Document(documentTemplate);
        }

        public Framework.Part CreatePart(Framework.PartTemplate partTemplate)
        {
            return new Part(partTemplate);
        }
    }
}